package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class PlatCoinRate implements Parcelable {

    /**
     * 支付渠道类型ID
     */
    @SerializedName("data")
    private int data;

    /**
     * 支付渠道主题
     */
    @SerializedName("name")
    private String name;


    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public PlatCoinRate() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeInt(this.data);


    }

    protected PlatCoinRate(Parcel in) {
        this.name = in.readString();
        this.data = in.readInt();

    }

    public static final Creator<PlatCoinRate> CREATOR = new Creator<PlatCoinRate>() {
        @Override
        public PlatCoinRate createFromParcel(Parcel source) {
            return new PlatCoinRate(source);
        }

        @Override
        public PlatCoinRate[] newArray(int size) {
            return new PlatCoinRate[size];
        }
    };
}
